package edu.sctu.practice.class02.xuejiahua.test12;

/**
 * Created by Administrator on 2015/10/11.
 */
public class Car {

    public int tire;
    public String color;
    public double weight;

    public Car(int tire,String color,double weight) {
        this.tire = tire;
        this.color = color;
        this.weight = weight;
    }

    public void accelerate(){
        System.out.println("汽车能够加速");
    }

    public void decelerate(){
        System.out.println("汽车能够减速");
    }

    public void stop(){
        System.out.println("汽车会停车");

    }

}
